/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Messenj;

import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JComponent;
import javax.swing.JLabel;

/**
 *
 * @author edoardo
 */
public class MjGlassPane extends JComponent{

    JLabel jl;
    ImageIcon ii;

    public MjGlassPane()
    {
        jl = new JLabel();
        ii = new ImageIcon();
        ii.setImage(Toolkit.getDefaultToolkit().createImage(this.getClass().getResource("Resources/Images/loading.gif")));
        this.setLayout(new FlowLayout());
    }

    public void start()
    {
        this.add(jl);
    }

    public void stop()
    {
        this.removeAll();
    }

}
